<?php
namespace App\Modules\Admin\Http\Controllers;

use DB;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class LoginController extends Controller
{
    
    public function login(){
        $id = request()->get('id');
        $users = DB::table('sys_admin')->get();
       
        return dataView(get_defined_vars());  
    }

    
    public function user(Request $request){
        $user = DB::table('sys_user')->paginate(10);
        $userArr = $user->items();
        $pages = $user->render(); 
        //var_dump($user);die;
        
        
        
        //$users = DB::table('sys_user')->where('id',1)->first();
        
        
        
        return dataView(get_defined_vars());
    }
    
    
    
    
    
    public function exam(){
        return dataView(get_defined_vars());
    }

    
    
    

    
    public function show($id){
        //
    }

   
    public function edit($id){
        //
    }

    
    public function update(Request $request, $id){
        //
    }

    
    public function destroy($id){
        //
    }
}
